Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ref(profiling): public methods for new API #4995

Conversation

armcknight
Copy link
Member

@armcknight armcknight commented Mar 18, 2025

per some discussion about API terminology, we will not introduce new methods named startProfileSession/stopProfileSession, instead continuing with startProfiler/stopProfiler. also explain session a bit better in the SentryProfileOptions headerdocs

#skip-changelog; for #4851

@armcknight armcknight changed the title Armcknight/profiling/new continuous apis/7 combine public methods ref(profiling): public methods for new API Mar 18, 2025
Copy link

codecov bot commented Mar 18, 2025

Codecov Report

Attention: Patch coverage is 82.05128% with 7 lines in your changes missing coverage. Please review.

Project coverage is 92.748%. Comparing base (aec2899) to head (84668b0).
Report is 2 commits behind head on armcknight/git-chain/profiling/new-continuous-apis/6-launch-profiling.

Files with missing lines Patch % Lines
Sources/Sentry/SentrySDK.m 75.000% 7 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                                             Coverage Diff                                             @@
##           armcknight/git-chain/profiling/new-continuous-apis/6-launch-profiling     #4995       +/-   ##
===========================================================================================================
+ Coverage                                                                 92.731%   92.748%   +0.016%     
===========================================================================================================
  Files                                                                        673       674        +1     
  Lines                                                                      83158     83283      +125     
  Branches                                                                   30265     30367      +102     
===========================================================================================================
+ Hits                                                                       77114     77244      +130     
+ Misses                                                                      5948      5942        -6     
- Partials                                                                      96        97        +1     
Files with missing lines Coverage Δ
...ntegrations/Performance/SentryProfileOptions.swift 100.000% <ø> (ø)
...ts/SentryAppStartProfilingConfigurationTests.swift 72.826% <ø> (ø)
...yProfilerTests/SentryProfilingPublicAPITests.swift 98.648% <100.000%> (ø)
Sources/Sentry/SentrySDK.m 90.190% <75.000%> (+0.480%) ⬆️

... and 20 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aec2899...84668b0. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

github-actions bot commented Mar 18, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1238.82 ms 1258.10 ms 19.29 ms
Size 22.30 KiB 843.08 KiB 820.78 KiB

Baseline results on branch: armcknight/git-chain/profiling/new-continuous-apis/6-launch-profiling

Startup times

Revision Plain With Sentry Diff
2fd0f0e 1225.94 ms 1247.47 ms 21.53 ms
9839a68 1228.24 ms 1247.98 ms 19.73 ms
cf7f7c2 1215.34 ms 1239.89 ms 24.55 ms
284b1c6 1245.83 ms 1264.37 ms 18.53 ms
0a0a2bf 1213.19 ms 1239.20 ms 26.01 ms
4f73298 1211.70 ms 1234.02 ms 22.32 ms

App size

Revision Plain With Sentry Diff
2fd0f0e 22.30 KiB 842.05 KiB 819.75 KiB
9839a68 22.30 KiB 843.83 KiB 821.52 KiB
cf7f7c2 22.30 KiB 842.86 KiB 820.56 KiB
284b1c6 22.30 KiB 843.83 KiB 821.52 KiB
0a0a2bf 22.30 KiB 843.82 KiB 821.52 KiB
4f73298 22.30 KiB 843.23 KiB 820.92 KiB

Previous results on branch: armcknight/profiling/new-continuous-apis/7-combine-public-methods

Startup times

Revision Plain With Sentry Diff
541710b 1219.14 ms 1238.58 ms 19.44 ms
ac230f1 1225.94 ms 1253.06 ms 27.13 ms
eca9f3d 1221.33 ms 1243.73 ms 22.41 ms
784d936 1219.02 ms 1251.24 ms 32.22 ms
7606482 1229.80 ms 1250.92 ms 21.12 ms
7edc56a 1224.47 ms 1250.91 ms 26.45 ms
db54fb7 1223.35 ms 1241.79 ms 18.44 ms

App size

Revision Plain With Sentry Diff
541710b 22.30 KiB 843.37 KiB 821.07 KiB
ac230f1 22.30 KiB 843.08 KiB 820.78 KiB
eca9f3d 22.30 KiB 843.38 KiB 821.07 KiB
784d936 22.30 KiB 841.48 KiB 819.18 KiB
7606482 22.30 KiB 841.48 KiB 819.17 KiB
7edc56a 22.30 KiB 843.38 KiB 821.07 KiB
db54fb7 22.30 KiB 843.06 KiB 820.75 KiB

@armcknight armcknight force-pushed the armcknight/profiling/new-continuous-apis/7-combine-public-methods branch from 49166aa to 0d7a452 Compare March 19, 2025 01:39
@armcknight armcknight marked this pull request as ready for review March 19, 2025 22:39
Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@armcknight armcknight force-pushed the armcknight/git-chain/profiling/new-continuous-apis/6-launch-profiling branch from 7b6e093 to a65fcde Compare March 21, 2025 08:34
@armcknight armcknight force-pushed the armcknight/profiling/new-continuous-apis/7-combine-public-methods branch from 5a35e76 to d1dfcd0 Compare March 21, 2025 08:34
armcknight and others added 6 commits March 21, 2025 14:23
…unch-profiling' into armcknight/profiling/new-continuous-apis/7-combine-public-methods
…unch-profiling' into armcknight/profiling/new-continuous-apis/7-combine-public-methods
…unch-profiling' into armcknight/profiling/new-continuous-apis/7-combine-public-methods
…unch-profiling' into armcknight/profiling/new-continuous-apis/7-combine-public-methods
Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io>
@armcknight armcknight merged commit b8d0e7d into armcknight/git-chain/profiling/new-continuous-apis/6-launch-profiling Apr 1, 2025
31 of 33 checks passed
@armcknight armcknight deleted the armcknight/profiling/new-continuous-apis/7-combine-public-methods branch April 1, 2025 00:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants